﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAO;
using DTO;
namespace BUS
{
    public class TinBanBUS
    {
        public static DataTable TimTinBanTheoTenSanPham(string tenSanPham, string loaiSanPham)
        {
            return TinBanDAO.TimTinBanTheoTenSanPham(tenSanPham, loaiSanPham);
        }

        public static DataTable HienThiChiTietTinBan(string maTinBan)
        {
            return TinBanDAO.HienThiChiTietTinBan(maTinBan);
        }

        public static bool DangTinBanSanPham(TinBanDTO tb, SanPhamDTO sp)
        {
            return TinBanDAO.DangTinBanSanPham(tb, sp);
        }

        public static string GetMaNguoiBan(string matinban)
        {
            return TinBanDAO.GetMaNguoiBan(matinban);
        }
    }
}
